package com.xxx.notice.client;

import com.xxx.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author blijojo
 * @date 2021/6/26 22:45
 */
@FeignClient("tensquare-user")
public interface UserClient {

    /**
     * 根据用户id查询用户
     *
     * @param userId 用户id
     * @return Result
     */
    @GetMapping("/user/{userId}")
    Result findById(@PathVariable("userId") String userId);

    /**
     * 查询所有用户id
     *
     * @return result
     */
    @GetMapping("/user")
    Result findAllId();

}
